<template>
    <div class="abs" :style="stylePx(style)" v-drag="id">
        <div class="rect">矩形</div>
    </div>
</template>

<script setup lang="ts">
import { defineProps } from 'vue'
import { stylePx } from '../../utils';

const { style, id } = defineProps(["style", "id"])
</script>

<style scoped>
.rect {
    width: 200px;
    height: 100px;
    background-color: skyblue;
    box-shadow: 10px -10px 15px #000;
    text-align: center;
    line-height: 100px;
    font-size: 35px;
    color: transparent;
    text-shadow: 0 0 5px #000;
    border-radius: 5px;
}
</style>